<?PHP
  class Logout extends Editor{
    function __construct($page){
      $this->page = $page;
    }
  
    public function display(){
      ?>
        <h1>Bis zum n&auml;chsten Mal!</h1>
      <?PHP
        $_SESSION['user']->logout();
      ?>
        <script type="text/javascript">
          <!--
            setTimeout("self.location.href='<?PHP echo Settings::getInstance()->get("host"); ?>'",750);
          //-->
        </script>
      <?PHP
    }
    function getHeader(){
    }
    
    public function getEditableCode(){
      return "<input name=\"save\" type=\"submit\" value=\"&Auml;ndern\" onclick=\"form.action='".$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']."' ; target='_self' ; return true\" />";
    }
    
    public function save($newPage,$oldPage){
    }    
}
?>